package com.tang.model.bridge.message;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/8/29 21:13
 * @Desc
 * @Remarks
 */
public class MessageTest {
    public static void main(String[] args) {
        AbstractSender abstractSender = new NormalSender(new SmsMessage());
        abstractSender.sendMessage("加班申请", "A");

        AbstractSender temp = new UrgentSender(new EmailMessage());
        temp.sendMessage("加班申请", "A");

    }
}
